package cn.edu.scau.cmi.heyaqing.abstractFactory;

public abstract class InsuranceAbstractFactory {
	public static final String PICC = "�й����ٱ���";
	public static final String PINGAN = "ƽ������";
	public abstract AutoInsurance getBodyInjur();
	public abstract AutoInsurance getCarDamage();
	public abstract AutoInsurance getCom();
	public abstract AutoInsurance getPersonInjur();
	
	public static InsuranceAbstractFactory getBuildingFactory(String type) {
		InsuranceAbstractFactory bf = null;
		if(type.equals(InsuranceAbstractFactory.PICC))
			bf = new PICCInsuranceFactory();
		else if(type.equals(InsuranceAbstractFactory.PINGAN))
			bf = new PingAnInsuranceFactory();
		
		return bf; 
	}
	
} 